<div class="suppliers index">
	<h2><?php echo __('Suppliers'); ?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('id'); ?></th>
			<th><?php echo $this->Paginator->sort('fname'); ?></th>
			<th><?php echo $this->Paginator->sort('lname'); ?></th>
			<th><?php echo $this->Paginator->sort('email'); ?></th>
			<th><?php echo $this->Paginator->sort('logo'); ?></th>
			<th><?php echo $this->Paginator->sort('company'); ?></th>
			<th><?php echo $this->Paginator->sort('desc'); ?></th>
			<th><?php echo $this->Paginator->sort('phone1'); ?></th>
			<th><?php echo $this->Paginator->sort('phone2'); ?></th>
			<th><?php echo $this->Paginator->sort('fax'); ?></th>
			<th><?php echo $this->Paginator->sort('zcode'); ?></th>
			<th><?php echo $this->Paginator->sort('address'); ?></th>
			<th><?php echo $this->Paginator->sort('city_id'); ?></th>
			<th><?php echo $this->Paginator->sort('pwd'); ?></th>
			<th><?php echo $this->Paginator->sort('active'); ?></th>
			<th><?php echo $this->Paginator->sort('website'); ?></th>
			<th><?php echo $this->Paginator->sort('created'); ?></th>
			<th><?php echo $this->Paginator->sort('updated'); ?></th>
			<th><?php echo $this->Paginator->sort('deleted'); ?></th>
			<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($suppliers as $supplier): ?>
	<tr>
		<td><?php echo h($supplier['Supplier']['id']); ?>&nbsp;</td>
		<td><?php echo h($supplier['Supplier']['fname']); ?>&nbsp;</td>
		<td><?php echo h($supplier['Supplier']['lname']); ?>&nbsp;</td>
		<td><?php echo h($supplier['Supplier']['email']); ?>&nbsp;</td>
		<td><?php echo h($supplier['Supplier']['logo']); ?>&nbsp;</td>
		<td><?php echo h($supplier['Supplier']['company']); ?>&nbsp;</td>
		<td><?php echo h($supplier['Supplier']['desc']); ?>&nbsp;</td>
		<td><?php echo h($supplier['Supplier']['phone1']); ?>&nbsp;</td>
		<td><?php echo h($supplier['Supplier']['phone2']); ?>&nbsp;</td>
		<td><?php echo h($supplier['Supplier']['fax']); ?>&nbsp;</td>
		<td><?php echo h($supplier['Supplier']['zcode']); ?>&nbsp;</td>
		<td><?php echo h($supplier['Supplier']['address']); ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($supplier['City']['id'], array('controller' => 'cities', 'action' => 'view', $supplier['City']['id'])); ?>
		</td>
		<td><?php echo h($supplier['Supplier']['pwd']); ?>&nbsp;</td>
		<td><?php echo h($supplier['Supplier']['active']); ?>&nbsp;</td>
		<td><?php echo h($supplier['Supplier']['website']); ?>&nbsp;</td>
		<td><?php echo h($supplier['Supplier']['created']); ?>&nbsp;</td>
		<td><?php echo h($supplier['Supplier']['updated']); ?>&nbsp;</td>
		<td><?php echo h($supplier['Supplier']['deleted']); ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('View'), array('action' => 'view', $supplier['Supplier']['id'])); ?>
			<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $supplier['Supplier']['id'])); ?>
			<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $supplier['Supplier']['id']), null, __('Are you sure you want to delete # %s?', $supplier['Supplier']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
	));
	?>	</p>
	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('New Supplier'), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('List Cities'), array('controller' => 'cities', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New City'), array('controller' => 'cities', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Activities'), array('controller' => 'activities', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Activity'), array('controller' => 'activities', 'action' => 'add')); ?> </li>
	</ul>
</div>
